package com.sheyu.mall.cart.service;

import com.sheyu.mall.cart.vo.CartItemVo;
import com.sheyu.mall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author sheyu
 * @Desciption:
 * @date 2020/9/1 5:12 下午
 */
public interface CartService {
    List<CartItemVo> getUserCartItems();

    CartVo getCart() throws ExecutionException, InterruptedException;

    void addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    void changeItemCount(Long skuId, Integer num);

    void checkItem(Long skuId, Integer check);

    void countItem(Long skuId, Integer num);

    void deleteItem(Long skuId);
}
